import { createApp } from "vue";
import App from "./App.vue";
// 引入字体图标
import "@/assets/css/iconfont/iconfont.css";
// 清楚Html的默认样式的CSS
import "./assets/css/normal.css";
// 引入Element Plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 引入Element Plus 图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// 引入路由
import Router from "./router"
import {InstallStore} from './store'
async function MountApp() {
  const app = createApp(App)
  app.use(ElementPlus, { size: 'small' })
  // 引入Element Plus 图标
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }
  InstallStore(app)
  app.use(Router)
  // setupRouter(app)
  app.mount("#app")
}
MountApp()